<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
			<div class="span12">
				<div class="nonboxy-widget">
					<div class="widget-head">
						<h5><i class="black-icons blocks_images"></i><?=$title?></h5>
					</div>
					<div class="widget-content">
						<div class="widget-box">
              <?=$this->form_eksternal->form_open_multipart("", 'class=" form-horizontal well" id="formmaster"', 
                      array("id_detail" => $detail[0]->id_asset))?>
								<fieldset>
									<div class="control-group">
										<label class="control-label">Name</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('name', $detail[0]->name, 'class="span4"')?>
										</div>
									</div>
                                                                    <div class="control-group">
										<label class="control-label">Kategori</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_dropdown('id_asset_kategori', $id_asset_kategori, array($detail[0]->id_asset_kategori), "id='kategori'")?>
										</div>
									</div>
                                                                     <div class="control-group">
										<label class="control-label">Brand</label>
										<div class="controls">
                                                                                    
                      <?=$this->form_eksternal->form_dropdown('id_asset_brand', $id_asset_brand, array($detail[0]->id_asset_brand), "id='brand'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Kode</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('kode', $detail[0]->kode, 'class="span4"')?>
										</div>
									</div>
                                                                    <div class="control-group">
										<label class="control-label">Panjang</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('panjang', $detail[0]->panjang, 'class="span4"')?>
										</div>
									</div>
                                                                    <div class="control-group">
										<label class="control-label">Lebar</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('lebar', $detail[0]->lebar, 'class="span4"')?>
										</div>
									</div>
                                                                    <div class="control-group">
										<label class="control-label">Tinggi</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('tinggi', $detail[0]->tinggi, 'class="span4"')?>
										</div>
									</div>
                                                                    <div class="control-group">
										<label class="control-label">Massa</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input('massa', $detail[0]->massa, 'class="span4"')?>
										</div>
									</div>
                                                                     <div class="control-group">
										<label class="control-label">Image 1</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_upload('image_1', $detail[0]->image, 'class="span4"')?>
                               <?php 
                               $tes1 = base_url()."files/asset/size/".$detail[0]->image_1;
                               $tes2 = base_url()."files/asset/size/".$detail[0]->image_2;
                               $tes3 = base_url()."files/asset/size/".$detail[0]->image_3;
                                if($detail[0]->image_1){
                                 echo "<br />".$image1 = "<img border='0' src='". $tes1 ."' width='100' height='250'>";
                                }
                                if($detail[0]->image_2){
                                    $image2 = "<img border='0' src='". $tes2 ."' width='100' height='250'>";
                                }
                                 if($detail[0]->image_3){
                                    $image3 = "<img border='0' src='". $tes3 ."' width='100' height='250'>";
                                }
                               ?>                                         
                        <?=$this->form_eksternal->form_hidden('load_image_1', $detail[0]->image_1)?>
										</div>
									</div>
                                                                     <div class="control-group">
										<label class="control-label">Image 2</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_upload('image_2', $detail[0]->image, 'class="span4"')?>
                                                                                    <?="<br />".$image2; ?>
                      <?=$this->form_eksternal->form_hidden('load_image_2', $detail[0]->image_2)?>
										</div>
									</div>
                                                                    <div class="control-group">
										<label class="control-label">Image 3</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_upload('image_3', $detail[0]->image, 'class="span4"')?>
                                                                                     <?="<br />".$image3; ?>
                     <?=$this->form_eksternal->form_hidden('load_image_3', $detail[0]->image_3)?>
										</div>
									</div>
                                                                    <div class="control-group">
										<label class="control-label">Note</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_textarea('note', $detail[0]->note, 'class="span4" style="margin: 0px; width: 506px; height: 206px;"')?>
										</div>
									</div>
								</fieldset>
								<div class="form-actions">
									<button class="btn btn-primary" type="submit">Save changes</button>
									<button class="btn" onclick="history.go(-1);return false;">Cancel</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
  </div>
</div>